package info.wf0913.blogger_core.bean;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class Result {
    private int code = 200;
    private String status = "成功";
    private Object data;

    public static Result ok() {
        return new Result();
    }

    public static Result failure() {
        Result result = new Result();
        result.setCode(500);
        result.setStatus("失败");
        return new Result();
    }
}
